package com.jfinal.test.order;

import org.junit.Test;
import com.jfinal.test.JunitFinalTest;

public class ApiTestV2 extends JunitFinalTest {
	
	@Test
	public void testMethod() {
		try {
			/*
			String maxroleuserid = "";
			List<BUser> ulist = dao.find("select userid,roleid,rolename,preuserid from b_user where flag='0'");
			if(ulist.size()>0){
				BUser maxrole = new BUser();
				for (BUser obj : ulist) {
				    if (obj.getUserid().toString().equals("743393457212624896")) {
				    	maxrole.setUserid(obj.getUserid());
			    		maxrole.setRoleid(obj.getRoleid());
			    		maxrole.setPreuserid(obj.getPreuserid());
				    }
				}
				
				if(maxrole.getPreuserid() > 0L) {//根部跳出
					maxrole = this.maxroleuserid(maxrole,ulist);;	
		    	}
				maxroleuserid = maxrole.getUserid().toString();	
			}
			 System.out.println("返回数据如下:" + maxroleuserid);
			
			/*
			 * String preroleuserid="000000"; List<BUser> ulist =
			 * dao.find("select userid,roleid,rolename,preuserid from b_user where flag='0'"
			 * ); if(ulist.size()>0){ if(ulist.size()>0){ preroleuserid =
			 * this.preroleid("743393288635158528","557494600835665901",ulist); } }
			 * 
			 * System.out.println("返回数据如下:" + preroleuserid);
			 */
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		//print(token);
		 //System.out.println("支付回调结果:::::::::::::::::::::"+timeStamp2Date(1618914884561,"yyyyMM"));
	}
}


